import { timeOptions, flagOptions } from '@/constant'
import type { IllnessTime } from '@/enums'

// 根据时间，获取描述
export const getIllnessTimeText = (time: IllnessTime) => {
  return timeOptions.find((item) => item.value === time)?.label
}

// 根据flag获取描述
export const getConsultFlagText = (flag: 0 | 1) => {
  return flagOptions.find((item) => item.value === flag)?.label
}
